<?php

class Domain_Agent
{
	public function getCode($uid)
	{
		$rs    = array();
		$model = new Model_Agent();
		$rs    = $model->getCode($uid);
		
		return $rs;
	}
	
	
	public function agent($uid)
	{
		$rs    = array();
		$model = new Model_Agent();
		$rs    = $model->agent($uid);
		
		return $rs;
	}
	
	public function profit($uid)
	{
		$rs    = array();
		$model = new Model_Agent();
		$rs    = $model->profit($uid);
		
		return $rs;
	}
	
	public function setAgent($uid, $code)
	{
		$rs    = array();
		$model = new Model_Agent();
		$rs    = $model->setAgent($uid, $code);
		
		return $rs;
	}
	
	public function getProfit($uid, $code, $pnum = 50)
	{
		$rs    = array();
		$model = new Model_Agent();
		$rs    = $model->getProfit($uid, $code, $pnum);
		
		return $rs;
	}
	
	public function sumProfit($uid)
	{
		$rs    = array();
		$model = new Model_Agent();
		$rs    = $model->sumProfit($uid);
		
		return $rs;
	}
	
	public function quit($uid)
	{
		$rs    = array();
		$model = new Model_Agent();
		$rs    = $model->quit($uid);
		
		return $rs;
	}
	
}
